package com.msb.service.impl;

import com.msb.mapper.EmpMapper;
import com.msb.pojo.Emp;
import com.msb.service.EmpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName: EmpserviceImpl
 * @Author: zw
 * @Description: 出百万拳，行万里路；
 * @Create 2024/5/19-23:06
 * @Version 1.0
 */

@Service
public class EmpserviceImpl implements EmpService {
    @Autowired
    private EmpMapper empMapper;
    public String addTest(int id) {
        return "hello";
    }

    public String findEmpById(int id) {
        return empMapper.findEmpById(id);
    }

    @Override
    public Emp findEmpsById(int id) {
        return empMapper.findEmpsById(id);
    }

    @Override
    public List<Emp> findAllEmps(Emp params) {
        return  empMapper.findAllEmps(params);
    }

}